package com.rewrite;

public class liubnag extends hero {

    //当父类重写以后去除this才是使用的传值的name
    public void fun(String name) {
        super.fun("李世民");
        System.out.println(name+"是开国皇帝");
    }

    public static void main(String[] args){
        liubnag lb = new liubnag();
        lb.fun("李世民");
    }
}
